<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a class="tip-bottom" href="{:U('Index/index')}" data-original-title="首页"><i class="icon-home"></i> 首页</a>
			<a class="current" href="{$post_url}">{$meta_title}</a>
		</div>
	</div>
    <div class="container-fluid" style="margin-top:15px;">
        <!-- 活动信息 -->
        <div class="row-fluid">
            <form method="post" autocomplete="off" action="{:U('changeBindMemberNew')}">  
            	<div class="control" id="member_list" style="margin:20px 0 5px 0;"></div>
            	<br/>
				<button class="btn btn-success" type="submit">确定回收</button>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">

$(function (){
	
	//员工加载
    $.ajax({ url: "{:U('ServiceStatistics/getMemberList')}", data: { member_value : '{$member_value}'} , success: function(data){
    	if('' != data){
        	$('#member_list').html(data).hide().fadeIn(300);
    	}
        //初始化控件
        var IS_INIT = 1;
     	// 全选
        $(".checkbox-all").bind("click",function(){
            $(this).nextAll("div.checkbox-group").children("label").children("input").prop("checked", true);
        });
        // 反选
        $(".checkbox-opposite").bind("click",function(){
            $(this).nextAll("div.checkbox-group").children("label").children("input[type=checkbox]").each(function(e) {
                if ($(this).is(":checked")) {
                    $(this).prop("checked", false);
                }else{
                    $(this).prop("checked", true);
                }
            });
        });
	}});
})

//导航高亮
highlight_subnav("{:U('ServiceManage/changeBindMember')}");
</script>
</block>